FileStorage
Types
Interface defining callbacks for handling events related to FileStorage within the SDK.
Properties
Functions
Adds a RainbowFileViewer to a RainbowFileDescriptor The specified viewer will have access to the RainbowFileDescriptor, they will be able to download and view the file.
Adds a RainbowFileViewer to as list of RainbowFileDescriptor
Cancel the download started on the RainbowFileDescriptor. If there is a downloaded file, partial or complete, it is deleted.
Cancel the upload started on the RainbowFileDescriptor.
As a viewer of multiple RainbowFileDescriptors, upload a copy in the user personal storage
As a viewer of the RainbowFileDescriptor, upload a copy in the user personal storage
Create the external storage URL for accessing shared files within a room. Only Bubble owner can do it.
Deletes all previously downloaded files on the device
Deletes all RainbowFileDescriptor owned by the user
Deletes the RainbowFileDescriptor from the server
Deletes a list of RainbowFileDescriptor from the server
Deletes a given viewer from a list of RainbowFileDescriptor
Deletes a given viewer from a RainbowFileDescriptor The user must be a current viewer of the RainbowFileDescriptor, once deleted, they will no longer have access to it
Download the file from the server. This method uses the Android DownloadManager
Returns a RainbowFileDescriptor and fetch last data from the server
Fetches a list of RainbowFileDescriptor received in a bubble conversation This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of RainbowFileDescriptor received in this bubble, no results are returned.
Fetches a list of RainbowFileDescriptor in a conversation This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of RainbowFileDescriptor in this conversation, no results are returned.
Fetches a list of received RainbowFileDescriptor This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of received RainbowFileDescriptor, no results are returned. This method does not filters results.
Fetches a list of RainbowFileDescriptor received in a bubble conversation This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of RainbowFileDescriptor received in this bubble, no results are returned.
Fetches a list of RainbowFileDescriptor received in a conversation This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of RainbowFileDescriptor received in this conversation, no results are returned.
Fetches a list of sent RainbowFileDescriptor This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of sent RainbowFileDescriptor, no results are returned. This method does not filters results.
Fetches a list of RainbowFileDescriptor in a bubble conversation This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of RainbowFileDescriptor in this bubble, no results are returned.
Fetches a list of RainbowFileDescriptor sent in a conversation This method accept a limit and an offset parameters for pagination, when limit is set to 0, the API returns a maximum of 100 results. If offset is greater that the limit of RainbowFileDescriptor sent in this conversation, no results are returned.
Drops the ownership to another Rainbow user of the same company The user must be in the same company and allowed by administrator
Retrieve the current uploads if there are any
Get the external storage URL for accessing shared files within a room.
Retrieves the external storage login URL associated to the connected user.
Returns a RainbowFileDescriptor if found in local list
Retrieves the downloaded file associated to the RainbowFileDescriptor from the device
Retrieves the current file storage consumption and quota associated to the connected user.
Checks if the file has already been downloaded to the device
Register to the listener with following triggers: onMaxQuotaReached
Unregister to the listener with following triggers: onMaxQuotaReached
Upload a list of files with a specific RainbowFileViewer
Uploads a file to a bubble A new RainbowFileDescriptor will be create with the user as the owner, the bubble will be a viewer for this RainbowFileDescriptor.
Uploads a file to a channel A new RainbowFileDescriptor will be create with the user as the owner, the channel will be a viewer for this RainbowFileDescriptor.
Uploads a file to a conversation A new RainbowFileDescriptor will be create with the user as the owner, the IRainbowConversation will be a viewer for this RainbowFileDescriptor whether it's a contact or a bubble.
Uploads a file to the user personal storage